import http from '../index'

// 根据类型获取协议
export const getAgreementDetail = ({ type }) => {
    return http.get("agreement/one", { type })
}

// 修改协议
export const editAgreement = ({ sid, content, type, status = null }) => {
    return http.put("agreement/" + sid, { content, type, status })
}

// 根据sid启用-停用协议
export const changeAgreementStatus = ({ sid }) => {
    return http.put("agreement/" + sid + '/status')
}



